# app/user/bp_user.py

from flask import Blueprint, request, session

bp = Blueprint("user", __name__, url_prefix="/user")

@bp.route("/login", methods=("POST", "GET"))
def login():
    # username = request.form["username"]
    # password = request.form["password"]

    return {"code": 0, "msg": "success"}


@bp.post("/logout")
def logout():
    session.clear()
    return {"code": 0, "msg": "logout success"}
